#pragma once

//
// This is example code from Chapter 9.8 "The Date class" of 
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//

#include <iostream>

using namespace std;

//------------------------------------------------------------------------------

namespace Clock { //Edited by Cornell Washington

//------------------------------------------------------------------------------

	class Time { //Edited by Cornell Washington (originally read "Time1")
public:
  
	class Invalid { };                 // to throw as exception

    //Time1(int h, int min);       // check for valid date and initialize
    //Time1();                            // default constructor
    // the default copy operations are fine

    // non-modifying operations:
    int   hour()   const { return h; }
    int   minutes()  const { return min; }

    // modifying operations:
    void add_hour(int n);        
    void add_minutes(int n);
private:
    int   h;
    int   min;
};


//ostream& operator<<(ostream& os, const Time1& h);
//istream& operator>>(istream& is, Time1& hh);

//------------------------------------------------------------------------------

} // Chrono
